#!/bin/bash

# set timeout 30
# set host "123.56.96.109"
# set username "root"
# set password "Dd1373513133"

# spawn ssh $username@$host
# expect "" {send "ssh $username@$host\r"}
# expect "*password*" {send "$password\r"}
# printf "开始执行脚本\n"
# interact



set timeout 30
set host "123.56.96.109"
set username "root"
set password "Dd1373513133"
set path "/Users/duanpw/Desktop/测试自动部署/text"

spawn ls
expect "*" {send "cd VCServer \r"}
expect "*" {send "ls \r"}


expect eof

# send "pm2 list\r"
# send "git clean -f\r"
# send "git pull\r" 
# interact 
# expect eof 
# exit
 
